#include "stdlib.h"
#include "stdio.h"
#include "string.h"


void copy_str5(char *from, char *to)
{
	while((*to++ = *from++))
	{
		;
	}
}

void main()
{
	char *p = "abcdefg";
	//char *p2 = NULL;
	char p2[100] ;
	copy_str5(p, p2);

	//strcpy(p2, "abcdeeg");
	printf("p2:%s\n", p2);

	system("pause");
}